<table id="product-gallery-table">
    <tbody><tr>
        <?php foreach($this->get_data('product_gallery_list') as $product_gallery): ?>
        <td>
            <a href="<?php echo tos_url($product_gallery['url_segment']); ?>">
                <?php echo tos_img($product_gallery['thumbnail']); ?>
            </a>
        </td>
        <td>
            <h3><a href="<?php echo tos_url($product_gallery['url_segment']); ?>">
                <?php echo $product_gallery['caption'];?>
                </a></h3>
        </td>
        <?php endforeach; ?>
    </tr></tbody>
</table>